<script type="text/javascript">
function submitform()
{
  if(validateform())
    document.getElementById('form').submit();
}
</script>

      <div class="answer-form">
          <form action="{{ action }}" id="form" class="form-horizontal" method="POST">
          <fieldset>

